<p class='upload'>
  <div id="upload_files"></div>
  <%- session_key_name = ActionController::Base.session_options[:key] -%>
	<script type="text/javascript">
	  $('#upload_files').fileUpload({  
	      script          : '/admin/assets',
	      fileDataName    : 'asset[file]',
	      scriptData      : {
	        '<%= session_key_name %>' : '<%= u cookies[session_key_name] %>',
	        'authenticity_token'  : '<%= u form_authenticity_token if protect_against_forgery? %>'
	      }
	  });
	</script>
</p>